package day27;

import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JList;

public class name extends JPanel {
	private JTextField textField;
	private JButton button;
	private JList list;

	/**
	 * Create the panel.
	 */
	public name() {
		setLayout(null);
		add(getTextField());
		add(getButton());
		add(getList());

	}

	private JTextField getTextField() {
		if (textField == null) {
			textField = new JTextField();
			textField.setBounds(27, 34, 298, 31);
			textField.setColumns(10);
		}
		return textField;
	}
	private JButton getButton() {
		if (button == null) {
			button = new JButton("입력");
			button.setBounds(341, 38, 97, 23);
		}
		return button;
	}
	private JList getList() {
		if (list == null) {
			list = new JList();
			list.setBounds(50, 97, 336, 164);
		}
		return list;
	}
}
